import React from "react";
import "./index.css";
import "tailwindcss/tailwind.css";
import { AntdRegistry } from "@ant-design/nextjs-registry";
//nextjs无法在server client中注入，需要自定包裹Providers注入
import { Providers } from "@/componets/Provides";

export const metadata = {
  title: "Shavy",
  description: "Created by Shavy",
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <body>
        <AntdRegistry>
          <Providers>
            {children}
          </Providers>
        </AntdRegistry>
      </body>
    </html>
  );
}
